<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  var str= 'border-bottom-color';
  (function (str) {
    var arr= str.split('-');
    for (var i=1;l<arr.length;i++){
      console.log();
    }
  })(str)
</script>
</body>
</html>